home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / Timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-13  |  822 b   |  48 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 8:09 PM
  4.     Timer.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1985-1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __TIMER__
  15. #define __TIMER__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25. typedef pascal void (*TimerProcPtr)(void);
  26.  
  27. struct TMTask {
  28.     QElemPtr qLink;
  29.     short qType;
  30.     TimerProcPtr tmAddr;
  31.     long tmCount;
  32. };
  33.  
  34. typedef struct TMTask TMTask;
  35. typedef TMTask *TMTaskPtr;
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. pascal void InsTime(QElemPtr tmTaskPtr);
  41. pascal void PrimeTime(QElemPtr tmTaskPtr,long count);
  42. pascal void RmvTime(QElemPtr tmTaskPtr);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #endif
  48.